//
// Created by zhp on 2025/7/17.
//
#include <string>
#include <iostream>
#include "student.h"

student::student(int age, const std::string &name, int sex) {
    this->age = age;
    std::cout << "name：" << name << std::endl;
}


void student::set_name(std::string student_name) {
    this->name = student_name;
}

// 析构函数
student::~student() {
    std::cout << "bye ~";
}


std::string student::get_name() {
    return this->name;
}


int main() {


    student a(1, "jack", 10);

    student b = student(2, "Rose", 11);

    student c;
    std::cout << c.get_name() << std::endl;


}
